#ifndef _SPRITE_BASED_H_
#define _SPRITE_BASED_H_

#include "Entity.h"
#include <string>

class SpriteBased:public Entity
{
public:
	SpriteBased(Entity::EntityType type, const SQChar* path=0);
	virtual void serialize(SquirrelObject& out) const;
	virtual void deserialize(SquirrelObject& in);
	void setImage(const SQChar* path);
	virtual ~SpriteBased();
protected:
	sf::Sprite shape_impl;
	wstring path;
};

#endif